package com.ouc.edu.ssm.service.impl;

import com.ouc.edu.ssm.mapper.QueryChiefListMapper;
import com.ouc.edu.ssm.service.QueryAllChiefService;
import org.mybatis.spring.mapper.MapperFactoryBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Service
public class QueryAllChiefServiceImpl implements QueryAllChiefService {
    @Autowired
    private QueryChiefListMapper querychiefListmapper;

    public void setQuerychiefListmapper(QueryChiefListMapper querychiefListmapper) {
        this.querychiefListmapper = querychiefListmapper;
    }

    public List queryChief() {
        List list = querychiefListmapper.queryAllChief();
        return list;
    }

}
